// 这是所有接口的配置信息
// const BASEURL =
//   "https://www.easy-mock.com/mock/5c83704322c6e01a284aae93/dianshang/";
const LOCALURL = "http://localhost:3000/";

const url = {
  getShoppingMallInfo: LOCALURL + "goods/main", // 这是首页信息接口
  // getGoodsInfo: BASEURL + "goodsInfo", // 这是商品详细信息的接口
  registerUser: LOCALURL + "user/register", // 用户注册接口1
  loginUser: LOCALURL + "user/login", // 用户登录接口1
  updPwd: LOCALURL + "user/updPassword", // 用户修改密码1
  getDetailGoodsInfo: LOCALURL + "goods/getDetailGoodsInfo", // 商品详细信息页接口
  getCategoryList: LOCALURL + "goods/categoryList", // 获取商品大类信息1
  getCategorySubList: LOCALURL + "goods/categorySubList", // 获取商品小类信息1
  getGoodsListByCategorySubId: LOCALURL + "goods/getGoodsListByCategorySubId", // 获取商品小类每页数据1
  getGoodsInfoByKeyWord: LOCALURL + "goods/getGoodsInfoByKeyWord", // 根据关键词搜索商品1
  payMoney: LOCALURL + "user/payMoney", // 提交订单的时候验证 token 的有效性
  historyCart: LOCALURL + "goods/getHistoryCart", // 查找历史订单1
  comment: LOCALURL + "goods/comment", // 提交评论
  getComment: LOCALURL + "goods/getComment", // 获取评论
  postkeyword: LOCALURL + "goods/postkeyword", // 提交关键词1
  gethotword: LOCALURL + "goods/gethotword", // 获取热门搜索词1
  postCart: LOCALURL + "goods/postCart", // 提交订单1
  correct: LOCALURL + "user/correct", // 验证登录状态
  deleteCart: LOCALURL + "goods/deleteCart" // 删除历史订单
};

export default url;
